package com.nd.pojo.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class CouponCreateBo {

    private String name;

    private String desc;

    private String tag;

    private Integer total;

    private BigDecimal discount;

    private BigDecimal min;

    private Short limit;

    private Short type;

    private Short status;

    private Short goodsType;

    private Object[] goodsValue;

    // private String code;

    private Short timeType;

    private Short days;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    //private Date addTime;

    //private Date updateTime;

    //private Boolean deleted;


//        "name": "123",
//            "desc": "123",
//            "tag": "123",
//            "total": "123",
//            "discount": "123",
//            "min": "123",
//            "limit": "123",
//            "type": 0,
//            "status": 0,
//            "goodsType": 0,
//            "goodsValue": [],
//        "timeType": 0,
//            "days": "1",
//            "startTime": null,
//            "endTime": null

}
